package com.xbongbong.pro.dynamic.pojo.dto;

import com.xbongbong.pro.payment.pojo.dto.PaymentInsertBatchDTO;
import com.xbongbong.saas.domain.entity.ext.PaymentEntityExt;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 *应收款
 *
 *@author weijianxun
 */
@Setter
@Getter
@ToString
public class DynamicPayDTO implements Serializable {
    private static final long serialVersionUID = -6746410175810812514L;

    private PaymentInsertBatchDTO paymentInsertBatchDTO;
    private List<PaymentEntityExt> paymentEntityExts;

    public static DynamicPayDTO initSaveDynamicPayDTO(PaymentInsertBatchDTO paymentInsertBatchDTO, List<PaymentEntityExt> paymentEntityExts) {
        DynamicPayDTO dynamicPayDTO = new DynamicPayDTO();
        dynamicPayDTO.setPaymentEntityExts(paymentEntityExts);
        dynamicPayDTO.setPaymentInsertBatchDTO(paymentInsertBatchDTO);
        return dynamicPayDTO;
    }
}
